import requests

#接口层封装
class LoginApi(object):
    @classmethod
    def login(self,json_data):
        url = "http://kaxiaoli.kalulibattery.com/battery-admin-api/session/login"
        headers = {"Content-Tyte":"application/json"}
        resp = requests.post(url=url,headers=headers,json=json_data)
        return resp.json()







# if __name__ == '__main__':
#     resq = LoginApi.login({"loginName":"sa","loginPwd":"123456"})
#     print(resq)